package com.koron.system.userOrg.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.system.userOrg.bean.po.AppUserOrgPo;

import java.util.List;

/**
 * (AppUserOrg)表服务接口
 *
 * @author zhouj
 * @since 2021-11-22 09:11:06
 */
public interface AppUserOrgService {

    int insertOrUpdate(AppUserOrgPo appUserOrg);

    int insertOrUpdateBatch(List<AppUserOrgPo> appUserOrgList);

    int insert(AppUserOrgPo appUserOrg);

    int insertBatch(List<AppUserOrgPo> appUserOrgList);

    int insert(String account, String orgId);

    int update(AppUserOrgPo appUserOrg);

    int updateBatch(List<AppUserOrgPo> appUserOrgPoList);

    int update(String account, String orgId);

    int deleteById(String id);

    int deleteByAccount(String account);

    int deleteByAccount(String account,String orgId);

    AppUserOrgPo queryById(String id);

    PageInfo queryPageList(AppUserOrgPo appUserOrg, PageQuery pageQuery);

    List<AppUserOrgPo> queryList(AppUserOrgPo appUserOrg);

    List<AppUserOrgPo> queryByAccountList(List<String> accountList);

    int deleteByAccountList(List<String> accountList,String orgId);
}
